package work;

public class Test {
    public static void main(String[] args) {
        Baozi baozi = new Baozi();
        BaoziBox baoziBox = new BaoziBox();

        Producer A = new Producer(baozi,baoziBox);
        A.setName("A");
        Producer B = new Producer(baozi,baoziBox);
        B.setName("B");

        Customer C = new Customer(baozi,baoziBox);
        C.setName("C");
        Customer D = new Customer(baozi,baoziBox);
        D.setName("D");

        A.start();
        B.start();
        C.start();
        D.start();

    }
}
